package com.ruoyi.system.service;

import com.ruoyi.system.domain.SpokenCourseTime;
import com.ruoyi.system.domain.SpokenTeacher;
import com.ruoyi.system.domain.SpokenTeacherCourseTime;
import com.ruoyi.system.domain.SpokenUserCourseTime;

import java.util.List;

public interface ISpokenTeacherService {

    public List<SpokenTeacher> selectList(SpokenTeacher teacher);

    public int insert(SpokenTeacher teacher);

    public SpokenTeacher selectById(Long teacherId);

    public int update(SpokenTeacher teacher);

    public int delete(Long teacherId);

    /**
     * 根据教师分类查询教师数量
     * @param tagId
     * @return
     */
    public int selectCountByTagId(Long tagId);

    /**
     * 根据课程表ID查询教师数量
     * @param courseId
     * @return
     */
    public boolean selectCountByCourseId(Long courseId);


    /**
     * 根据年月查询当月教师没有课的日期
     * @param teacherId
     * @param date
     * @return
     */
    public List<String> selectDisableDate(Long teacherId, String date);

    /**
     * 根据日期、教师ID查询对应时间段
     */
    public List<SpokenTeacherCourseTime> selectTimes(Long teacherId, String date);


    /**
     * 修改会议信息
     * @param teacher
     * @return
     */
    public int updateMeetingInfo(SpokenTeacher teacher);

    /**
     * 查询教师数量
     */
    public Integer selectTeacherCount(String startDate, String endDate);
}
